<template>
  <div>
    <p>获取图书信息</p>
    <button @click="btn">点击获取图书信息</button>
  </div>
</template>

<script>
import axios from "axios";
export default {
  methods: {
    btn() {
      axios({
        url: "http://123.57.109.30:3006/api/getbooks",
        method: "get",
      }).then((obj) => {
        console.log(obj);
      });
    },
  },
};
</script>

<style>
</style>